<?php
namespace App\Http\Controllers\System;

use App\Http\Controllers\Controller;
use App\Common\Utils\JsonResponse;
use Illuminate\Http\Request;

class FilesController extends Controller{

    private $Request;
    private $filesService;
    private $logService;

    public function __construct(Request $Request)
    {
        parent::__construct();

        /** @var \App\Services\System\FilesService $filesService */
        $this->filesService = app('filesService');
        $this->Request = $Request;
         /** @var \App\Services\System\LogService $logService */
         $this->logService = app('logService');
    }

    /**
     * 获取列表
     * @author qiankun
     * @datetime 2025-03-19
     */
    public function getFilesList()
    {
        try{
            $result = $this->filesService->getFilesList($this->Request->all());
            return JsonResponse::success($result,'操作成功');
        }catch(\Exception $e){
            return JsonResponse::error($e->getMessage());
        }
    }

}
